Release 10.1A: OpenEdge Development:
Programming Interfaces
Running the sample application on UNIX
To verify that your HLC application is installed correctly, run the sample application.
![]()
To run the sample application:
- Run the
buildenvscript provided in the$DLC/oebuild/eucappdirectory to set up your HLC environment and to set environment variables for the C compiler and linker.- Create a working directory, then go to it.
- Copy the example HLC files to your working directory, as follows:
Note: Before you develop your own applications, move
candbuildenvto a directory that is in your path and movehlc.hto your include file directory or your current working directory.- Enter testhlc on the command line.
The
testhlcscript creates an empty database, compiles the C source files to create object files in your current directory, links your test HLC module, and runs a small sample application.After you run
hltank.p, verify that the results you obtain are correct by comparing them with the following results, which list the input values for radius, tlength, and depth, and the correct output for tavail:
![]()
Figure 18–10 shows the
testhlcscript on UNIX.Figure 18–10: UNIX testhlc script
![]()
These notes explain the blocks in Figure 18–10:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |